package com.whg.demo.exception;

/**
 * @Author whg
 * @create 2022/12/1 15:37
 * @description：自定义异常类
 */
public class MyException extends RuntimeException{

    public MyException(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
